package blog.service;

import blog.entity.Member;
import blog.entity.Article;
import blog.entity.Comment;

import java.util.List;

public interface DatabaseService {

	// SERVICE FOR ENTITY MEMBER
	public List<Member> listMember();

	public Member findMemberById(Integer idm);

	public Integer findIdMemberByMember(String member);

	public void saveMember(Member member);

	public void deleteMember(Member member);
	

	// SERVICE FOR ENTITY ARTICLE
	public List<Article> listArticle();

	public Article findArticleById(Integer ida);

	public Integer findIdArticleByArticle(String article);

	public void saveArticle(Article article);

	public void deleteArticle(Article article);
	

	// SERVICE FOR ENTITY ARTICLE
	public List<Comment> listComment();

	public Comment findCommentById(Integer idc);

	public Integer findIdCommentByComment(String comment);

	public void saveComment(Comment comment);

	public void deleteComment(Comment comment);
}
